package com.rustic.server.dto;

import cn.xy.commons.validator.EnumValidator;
import com.rustic.server.enums.AuditStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class TravelPlanAuditDTO {

    /**
     * 自增ID
     */
    @NotNull(message = "关联乡村不能为空")
    @Min(value = 1, message = "关联乡村不能为空")
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 审核状态(1待审核 2审核通过 3审核不通过)
     */
    @EnumValidator(clazz = AuditStatus.class, message = "请填写审核状态")
    @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", dataType = "int")
    private int auditStatus;

    /**
     * 审核备注,不通过需要填写备注
     */
    @ApiModelProperty(value = "审核备注,不通过需要填写备注", dataType = "String")
    private String auditRemark;
}
